//
//  SMSRequest.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/2/26.
//

#import "RiskControlRequest.h"
#import "RequestCommonParameter.h"

@implementation RiskControlRequest

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (NSString *)requestUrl {
//    NSString *uri = [@"/sulitloanapi/slu/other" stringByAppendingString:self.commonQuery];
//    NSCharacterSet *allowedCharacters = [NSCharacterSet URLQueryAllowedCharacterSet];
//    return [uri stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters];
    return [self requestEncodingUrl:@"/sulitloanapi/slu/other"];
}
- (id)requestArgument {
    // 纬度
    double latitude = [NSUserDefaults.standardUserDefaults doubleForKey:@"latitude"];
    // 经度
    double longitude = [NSUserDefaults.standardUserDefaults doubleForKey:@"longitude"];
    NSDictionary *dict = @{
        @"anxious": self.anxious ?: @"",
        @"confess": self.confess ?: @"",
        @"broad": @"",
        @"vanished": RequestCommonParameter.idfv ?: @"",
        @"glory": RequestCommonParameter.idfa ?: @"123",
        @"hours": @(longitude) ?: @"",
        @"jests": @(latitude) ?: @"",
        @"halo": self.halo ?: @"",
        @"surrounding": self.surrounding ?: @"",
        @"thence": @"thence",
    };
    return dict;
}

@end
